package com.ruoyi.course.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.course.domain.TExam;
import com.ruoyi.course.vo.TExamVo;
import com.ruoyi.course.mapper.TExamMapper;
import com.ruoyi.course.service.ITExamService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 考试Service业务层处理
 *
 * @author ruoyi
 * @date 2024-12-03
 */
@Service
public class TExamServiceImpl extends ServiceImpl<TExamMapper, TExam> implements ITExamService {

    @Override
    public TableDataInfo<TExamVo> queryList(TExamVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<TExamVo> queryAll(TExamVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public TExamVo queryById(Long id) {
        return this.baseMapper.queryById(id);
    }
}
